home *** CD-ROM | disk | FTP | other *** search
-
-
-
- AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- ALqueryparams - (obsolete) get descriptor/description pairs for audio
- device state variables
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiioooo....hhhh>>>>
-
- lllloooonnnngggg AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((lllloooonnnngggg ddddeeeevvvviiiicccceeee,,,, lllloooonnnngggg ****PPPPVVVVbbbbuuuuffffffffeeeerrrr,,,, lllloooonnnngggg bbbbuuuuffffffffeeeerrrrlllleeeennnnggggtttthhhh))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _d_e_v_i_c_e expects a device. Currently, there is only one device,
- AL_DEFAULT_DEVICE.
-
- _P_V_b_u_f_f_e_r expects an array of longs into which AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm))))
- can write descriptor/description pairs for each state
- variable associated with _d_e_v_i_c_e. The even (0,2,4, ...)
- entries receive the descriptors. The odd entries (1,3,5,
- ...) receive the descriptions. These descriptions take on
- one of four values:
-
- ++++////----AAAALLLL____RRRRAAAANNNNGGGGEEEE____VVVVAAAALLLLUUUUEEEE if this device state variable can assume
- a range of values, and the range has some meaning, i.e.
- larger values mean more of whatever this parameter
- controls. A value of ----AAAALLLL____RRRRAAAANNNNGGGGEEEE____VVVVAAAALLLLUUUUEEEE indicates that the
- parameter is read-only.
-
- ++++////----AAAALLLL____EEEENNNNUUUUMMMM____VVVVAAAALLLLUUUUEEEE if this device state variable assumes
- values from an enumerated type. They still have a limited
- range, but there is no inherent relationship between them.
- A value of ----AAAALLLL____EEEENNNNUUUUMMMM____VVVVAAAALLLLUUUUEEEE indicates that the parameter is
- read-only.
-
- _b_u_f_f_e_r_l_e_n_g_t_h expects the length of the buffer, in longs, pointed to by
- _P_V_b_u_f_f_e_r.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss is obsolete and is provided for backward compatibility. The
- preferred method is to use aaaallllQQQQuuuueeeerrrryyyyVVVVaaaalllluuuueeeessss((((3333ddddmmmm)))) with the AL_PARAMS
- parameter to list the supported parameters, followed by
- aaaallllGGGGeeeettttPPPPaaaarrrraaaammmmIIIInnnnffffoooo((((3333ddddmmmm)))) to get information about each supported parameter.
-
- AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) lets you get a list of descriptors for all the state
- variables associated with the specified device.
-
- AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) also tells you whether the value of a state variable
- must be one of a set of enumerated types or any number within a specific
- range. In both cases the values are numbers within the range returned by
- AAAALLLLggggeeeettttmmmmiiiinnnnmmmmaaaaxxxx((((3333ddddmmmm)))) and have the default value returned by
- AAAALLLLggggeeeettttddddeeeeffffaaaauuuulllltttt((((3333ddddmmmm)))).
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm))))
-
-
-
- Typical device parameters are expected to be things like volume and
- sample rate. You can find a list of parameters and their descriptions in
- AAAALLLLggggeeeettttppppaaaarrrraaaammmmssss((((3333ddddmmmm)))).
-
- AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) returns the length of the buffer (number of longs)
- that is required to hold all pairs of descriptors/descriptions. If
- _P_V_b_u_f_f_e_r is smaller than this value, you have not acquired a complete
- list of descriptor/description pairs and should increase your _P_V_b_u_f_f_e_r
- and try again.
-
- To simply determine the size of the buffer needed to hold the parameters
- and descriptions, call AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) with _b_u_f_f_e_r_l_e_n_g_t_h set to zero.
-
- AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) can fail for the following reasons:
-
- AAAALLLL____BBBBAAAADDDD____DDDDEEEEVVVVIIIICCCCEEEE _d_e_v_i_c_e is not valid.
-
- AAAALLLL____BBBBAAAADDDD____PPPPVVVVBBBBUUUUFFFFFFFFEEEERRRR _P_V_b_u_f_f_e_r is null valued.
-
- AAAALLLL____BBBBAAAADDDD____BBBBUUUUFFFFFFFFEEEERRRRLLLLEEEENNNNGGGGTTTTHHHH____OOOODDDDDDDD _b_u_f_f_e_r_l_e_n_g_t_h is odd.
-
- AAAALLLL____BBBBAAAADDDD____BBBBUUUUFFFFFFFFEEEERRRRLLLLEEEENNNNGGGGTTTTHHHH____NNNNEEEEGGGG _b_u_f_f_e_r_l_e_n_g_t_h is negative.
-
- AAAALLLL____BBBBAAAADDDD____DDDDEEEEVVVVIIIICCCCEEEE____AAAACCCCCCCCEEEESSSSSSSS audio hardware is inaccessible.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- #include <dmedia/audio.h>
- #include <malloc.h>
- ...
- /* Get a buffer containing all the device parameters. */
- long *buf,buflen;
- buflen=ALqueryparams(AL_DEFAULT_DEVICE,0,0);
- buf=(long *)malloc(buflen*sizeof(long));
- (void)ALqueryparams(AL_DEFAULT_DEVICE,buf,buflen);
-
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) returns the size of the
- buffer, in longs, needed to hold all the descriptor/description pairs for
- _d_e_v_i_c_e. Otherwise, AAAALLLLqqqquuuueeeerrrryyyyppppaaaarrrraaaammmmssss((((3333ddddmmmm)))) returns -1 and sets an error number
- which can be retrieved with oooosssseeeerrrrrrrroooorrrr((((3333CCCC)))).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ALgetparams(3dm), ALsetparams(3dm), ALgetminmax(3dm), ALgetname(3dm),
- ALgetdefault(3dm), ALsetdevice(3dm), oserror(3C)
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-